package com.qijian.tool.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.qijian.tool.domain.App;
import com.qijian.tool.domain.vo.AppVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * App版本更新Mapper接口
 *
 * @author qijian
 * @date 2022-02-08
 */
public interface AppMapper extends BaseMapper<App> {

    @Select("select count(0) from tool_app WHERE create_time >= CURRENT_DATE ")
    int countCurrentDateWithDel();

    <P extends IPage<App>> P selectPageVo(P page, @Param(Constants.WRAPPER) Wrapper<App> queryWrapper);



    AppVo getLatestApp();
}
